/**
 * 
 */
package com.couchcrowler.client.event;



import com.couchcrowler.shared.Profile;
import com.google.gwt.event.shared.GwtEvent;

/**
 * @author Vincentas
 *
 */
public class ProfileLoadedEvent extends GwtEvent<ProfileLoadedHandler> {

	private final Profile profile;
	
	public ProfileLoadedEvent(Profile profile) {
		this.profile = profile;
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ProfileLoadedHandler> getAssociatedType() {
		return ProfileLoadedHandler.type;
	}

	@Override
	protected void dispatch(ProfileLoadedHandler handler) {
		handler.loaded(profile);		
	}

}
